/**
 * Copyright (c) 2005-2016, yinwer81 (yinwer81@aliyun.com)
 *
 * Licensed under the Apache License, Version 2.0
 */
package com.nozturn.throne.entity;

import java.sql.Date;

public class AccessToken extends IdEntity {

    private static final long serialVersionUID = 3673685112005464154L;

    /**
     * access_token，逻辑主键
     */
    private String accessToken;

    /**
     * 授权码表物理主键
     */
    private Long authorizationPk;

    /**
     * access_token创建时间：秒
     */
    private Date createdAt;

    /**
     * access_token过期时间，默认3600秒
     */
    private Integer expiresIn;

    /**
     * 是否有效，100为已失效，200为有效
     */
    private Integer valid;

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public Long getAuthorizationPk() {
        return authorizationPk;
    }

    public void setAuthorizationPk(Long authorizationPk) {
        this.authorizationPk = authorizationPk;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Integer getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(Integer expiresIn) {
        this.expiresIn = expiresIn;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

}
